<?php
session_start();
include("../includes/conn.php");
$dbconn->admin_logincheck();
$adminid=intval($_SESSION['adminid']);
;echo '<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<title>欢迎登录后台管理系统</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/right.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="js/jquery.js"></script>
<script>
$(document).ready(function(){	
   $(function(){
      $(\'.rightinfo tbody tr:odd\').css("backgroundColor","#f5f8fa");	
   })

  /* $(".btn").click(function(){
	  var type=$("input[name=\'type\']").val();
	  var before=$("input[name=\'before\']").val();
	  var after=$("input[name=\'after\']").val();
	  
	  if(before==\'\' || after==\'\'){
		 alert("修改前金额、修改之后金额不能为空");
		 return false;  
      }
	   $.post("ajax.hbconfig.php",{
			 type:type,
		     before:before,
			 after:after
		   },function(data){
		     alert("修改成功");
	   });
   });*/
});
</script>
</head>
<body>
<div class="place"> <span>位置：</span>
  <ul class="placeul">
    <li><a href="index.php">首页</a></li>
    <li>红包金额设置</li>
  </ul>
</div>
<div class="formbody">
<form action="ajax.hbconfig.php" method="post">
  <ul class="forminfo">
  	<li>
      <label>类型</label>
      <select name="type" style="border:1px solid #000;height:34px;font-size:16px;font-family:\'微软雅黑\';">
      	<option value="1">导购红包</option>
      	<option value="2">消费者红包</option>
      </select>
      <i>请正确选择要修改不的红包类型，否则后果自负</i></li>
    <li>
      <label>将</label>
      <input name="before" type="text" value="" class="dfinput" />元
      <i>请正确输入设置好红包金额</i></li>
    <li>
      <label>改为</label>
      <input name="after" type="text" value="" class="dfinput" />元
      <i>改完之后请记住</i></li>
    <li>
      <label>&nbsp;</label>
      <input name="button" type="submit" class="btn" value="确认保存"/>
    </li>
  </ul>
</form>
</div>
</body>
</html>
';$tools->check_kuai()
?>